package com.ibix.gui.component;

import com.ibix.gui.GuiStructure;
import lombok.Data;

import javax.swing.*;
import java.awt.*;

@Data
public class MessageFrame extends JFrame {

    private String message;

    public MessageFrame(String message){
        setTitle("提示");
        setSize(400,200);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(this.EXIT_ON_CLOSE);
        setResizable(true);

        setLayout(
                new GridLayout(0,1)
        );
        JLabel jLabel = new JLabel(message,JLabel.CENTER);
        add(jLabel);
    }
}
